<?php
/**
 *	Data Model of Bug Reports.
 *	@package		tools.BugTracker
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
/**
 *	Data Model of Bug Reports.
 *	@package		tools.BugTracker
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			01.11.2005
 *	@version		1.0
 */
final class Model_Bug extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$bug_id		ID of Bug Report
	 *	@return		void
	 */
	public function __construct( $bugId = 0 )
	{
		$tableName	= "bugs";
		$columns	= array(
			"bugId",
			"serverId",
			"projectId",
			"location",
			"function",
			"type",
			"priority",
			"author",
			"title",
			"description",
			"status",
			"created",
			"modified",
		);
		$primaryKey	= $columns[0];
		$indices	= array(
			'serverId',
			'projectId',
			'type',
			'priority',
			'status'
		);
		parent::__construct( $tableName, $columns, $primaryKey, $bugId );
		$this->setIndices ( $indices );
	}
}
?>